package com.simple.card.repository.tenantbank;

import com.simple.card.dataobject.tenantbank.TBankbillShoppingsheet;
import com.simple.card.dataobject.tenantbank.TCard;
import com.simple.card.form.ConsumeDetailForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TBankbillShoppingsheetRepository {

    @Select("select * from t_bankbill_shoppingsheet where userId = #{userId}")
    public List<TBankbillShoppingsheet> findByUserId(String userId);

    @Select("select * from t_bankbill_shoppingsheet where billId=#{billId} and billMonth=#{billMonth}")
    public List<TBankbillShoppingsheet> findByBillId(ConsumeDetailForm consumeDetailForm);
}
